<%@ page import="ghr.day0109.travelt.vo.Travel" %><%--
  Created by IntelliJ IDEA.
  User: Gong
  Date: 2023/1/10
  Time: 14:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%
        Travel travel = new Travel();
        request.setCharacterEncoding("UTF-8");
    String name = request.getParameter("name");
    String ssId = request.getParameter("s");
    String type = request.getParameter("type");
    String price = request.getParameter("price");
        String phone = request.getParameter("phone");
        String user = request.getParameter("user");

        travel.add(name,Integer.parseInt(type),Integer.parseInt(price),phone,user,ssId);

        //equest.getRequestDispatcher("/ab").forward(request,response);
        response.sendRedirect("http://localhost:8080/java_web_2023_01_09/ab");
    %>
</head>
<body>
\
</body>
</html>
